﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yitter.IdGenerator;

namespace RBAC_Model
{
    public class UserRole: BaseEntity
    {
        /// <summary>
        /// 用户角色关联表主键
        /// </summary>
        //[Key]
        //[DatabaseGenerated(DatabaseGeneratedOption.None)]
        //public long Id { get; set; } = YitIdHelper.NextId();

        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserId { get; set; }  // 修改为long类型

        /// <summary>
        /// 角色ID
        /// </summary>
        public long RoleId { get; set; }  // 修改为long类型

     
    }
}
